package com.pazl.check.api.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @ClassName IsFaceOneselfDto
 * @Description TODO
 * @Author 陈家辉
 * @Date 2020/5/18 上午 10:17
 * @Version 1.0
 **/
public class IsFaceOneselfDto implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -2594640313239714180L;

    @NotEmpty(message = "isOneself missing.")
    @Pattern(regexp="1|2",message="isOneself error,only 【1|2】")
    private String isOneself;// 是否是本人

    @NotEmpty(message = "name missing.")
    private String name;// 姓名

    public String getIsOneself() {
        return isOneself;
    }

    public void setIsOneself(String isOneself) {
        this.isOneself = isOneself;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
